**********************************************************
/*Stata .do file for vignette experiment in Shi, L, & Denver, D. (Forthcoming). The Transferal of Criminal Record Stigma in the Employment Context: Evidence from Conjoint and Vignette Experiments. Criminology.*/
**********************************************************

**********************************************************
/*Table 1: Sample Demographics (N = 1,000)*/
**********************************************************
numlabel _all, add
svyset [pw= weight]
tab male
svy: tab male
tab race
svy: tab race
tab college
svy: tab college
mean age
svy: mean age

**********************************************************
/*Table 3: Vignette Results - Weighted Ordered Logistic*/
**********************************************************
svy: ologit recidivism serverblack serversmile excel violent timeclean i.frames /*model 1*/
svy: ologit avoidserver serverblack serversmile excel violent timeclean  i.frames /*model 2*/
svy: ologit recommendhypo serverblack serversmile excel violent timeclean i.frames /*model 3*/
svy: ologit avoidowner serverblack serversmile excel violent timeclean i.frames /*model 4*/
svy: ologit avoidother serverblack serversmile excel violent timeclean  i.frames /*model 5*/

**********************************************************
/*Appendix B: Vignette Results - Unweighted Ordered Logistic*/
**********************************************************
ologit recidivism serverblack serversmile excel violent timeclean i.frames /*model 1*/
ologit avoidserver serverblack serversmile excel violent timeclean i.frames /*model 2*/
ologit recommendhypo serverblack serversmile excel violent timeclean i.frames/*model 3*/
ologit avoidowner serverblack serversmile excel violent timeclean i.frames /*model 4*/
ologit avoidother serverblack serversmile excel violent timeclean i.frames /*model 5*/

***********************************************************
/*Appendix E: Descriptive Statistics for Vignette (N = 1,000)*/
************************************************************
svy: tab serverblack
svy: tab serversmile
svy: tab excel
svy: tab violent
svy: tab frame
svy: tab timeclean

svy: tab recommendhypo
svy: tab avoidowner
svy: tab avoidother
svy: tab avoidserver
svy: tab recidivism

***********************************************************
/*Appendix G: Generalized Logistic Regression-Restaurant Rec*/
************************************************************
ssc install gologit2
gsvy:gologit2 recommendhypo serverblack serversmile excel violent i.frames timeclean, auto lrforce 

***********************************************************
/*Appendix H: Vignette Results - Weighted OLS*/
************************************************************
svy: reg recidivism serverblack serversmile excel violent timeclean i.frames  /*model 1*/
svy: reg avoidserver serverblack serversmile excel violent timeclean i.frames /*model 2*/
svy: reg recommendhypo serverblack serversmile excel violent timeclean i.frames /*model 3*/
svy: reg avoidowner serverblack serversmile excel violent timeclean i.frames  /*model 4*/
svy: reg avoidother serverblack serversmile excel violent timeclean i.frames /*model 5*/
